package com.zhf.cloud.gateway.springcloudgateway.filter.model;

import eu.bitwalker.useragentutils.Browser;
import eu.bitwalker.useragentutils.OperatingSystem;
import lombok.Data;
import lombok.ToString;
import org.springframework.http.HttpMethod;

import java.net.URI;
import java.util.Date;
import java.util.Map;

/**
 * @author: 曾鸿发
 * @create: 2021-11-22 10:56
 * @description：
 **/
@Data
@ToString
public class RequestInfo {

    //请求ip
    private String ip;
    //请求客户端详细信息
    private String userAgentStr;
    //客户端浏览器
    private Browser browser;
    //客户端操作系统
    private OperatingSystem operatingSystem;
    //请求时间
    private Date requestTime;
    //请求方法
    private HttpMethod method;
    //请求路径
    private URI uri;
    //请求头
    private Map<String,String> requestHeaders;
    //请求体
    private String requestBody;

}
